import dataTime from './index.vue';

import { localeContextKey } from 'element-plus';
dataTime.install = function (vue) {
  let zh = require('element-plus/lib/locale/lang/zh-cn.js')['default'];
  let locale = {
    value: zh,
  };
  zh.el.datepicker.year = '年';
  vue.provide(localeContextKey, locale);
  vue.component('dataTime', dataTime);
};
export default dataTime;
